package Test;

import utils.Single;

/**
 * @author 崔书健
 * @date 2024/7/26
 */
public class TestSingle {

    public static void main(String[] args) {
        Single single = Single.test();
        System.out.println("调用Singleton.test()方法获取实例对象：" + single);

        single = Single.getInstance();
        System.out.println("第一次调用Singleton.getInstance()方法获取实例对象：" +single);

        single = Single.getInstance();
        System.out.println("第二次调用Singleton.getInstance()方法获取实例对象：" +single);
    }
}
